package com.example.template.utils;
/**
 * Description:
 * Created by lfywh on 2019/4/1510:45
 * Version 1.0
 */

import java.text.DecimalFormat;

/**
 * @ClassName NmberUtils
 * @Description TODO
 * @Date 2019/4/15 10:45
 **/
public class NmberUtils {

    public static float TransforFloat(int a,int b,int size){
        DecimalFormat df = new DecimalFormat("0.00");
        String format = df.format((float) a / (float) b);
        return Float.parseFloat(format);
    }

}
